using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Extrusion :MonoBehaviour{

	public float range;
//表面函数
    void Start(){
        range = 0.01f;
    }

    void Update(){
        //拉伸收缩挂在士兵上
        float f = Mathf.PingPong(Time.time *0.01, range) - range/2;

        GetComponent<MeshRenderer>().materials[0].SetFloat("_Amount", f);
    }

}
